<?php
  //Genesis Software Manual - Page 23

  $pdf->AddPage();
  //$pdf->Image('./Genesis/Gen-soft/Gsm-16.png',0,0,210 ,297);
  //add_raster(1);
  
  $margin = array
  (
    'tab_1' => 30,
    'tab_2' => 36,
    'tab_3' => 44,
    'tab_4' => 56,
    'tab_5' => 74,
    'tab_6' => 100
  );

  //draw_margins($margin);

  $pdf->SetDrawColor(0,0,0);
  $pdf->SetTextColor(0,0,0);
  $pdf->SetFont('arial','',10);
  $pdf->SetLineWidth(0.4);

  set_text_space(4.2);
 


  new_line(33);
//======================================================================================================================
  $pdf->Bookmark('11. H Scroll Data Table Base Address',2,current_line() - 10);
    $pdf->Text($margin['tab_2'],current_line(),'11.');
    $pdf->Text($margin['tab_2'] + 6,current_line(),'H SCROLL DATA TABLE BASE ADDRESS');
  new_line();
  new_line();
  new_line();
    $pdf->Text($margin['tab_2'] +1,current_line() + 5,'REG. #13');
    gentab_BitField_8($margin['tab_4'],current_line(),14.2,7,
      array('0','0','HS15','HS14','HS13','HS12','HS11','HS10'));
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'VRAM ADDR %XXXX_XX00_0000_0000');
  new_line();
  new_line();
    $pdf->Text($margin['tab_2'] +2,current_line() + 5,'REG. #14');
    gentab_BitField_8($margin['tab_4'],current_line(),14,7,
      array('0','0','0','0','0','0','0','0'));
  new_line();

//======================================================================================================================
  $pdf->Bookmark('12. Auto Increment Table',2,current_line() - 10);
    $pdf->Text($margin['tab_2'],current_line(),'12.');
    $pdf->Text($margin['tab_3'],current_line(),'AUTO INCREMENT TABLE');
  new_line();
  new_line();
    $pdf->Text($margin['tab_3'],current_line(),'This register controls bias number of increment data');

  new_line(current_line() + 14);
    $pdf->Text($margin['tab_2'] +2,current_line() + 5,'REG. #15');
    gentab_BitField_8($margin['tab_4'],current_line(),14,7,
      array('INC7','INC6','INC5','INC4','INC3','INC2','INC1','INC0'));
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'INC7~0:');
    $pdf->Text($margin['tab_5'],current_line(),'Bias number (0~$FF)');
    $pdf->Text($margin['tab_4'],new_line(),'This number is added automatically after RAM access');
  new_line();
  new_line();

//======================================================================================================================
  $pdf->Bookmark('13. Scroll Size',2,current_line() - 10);
    $pdf->Text($margin['tab_2'],current_line(),'13.');
    $pdf->Text($margin['tab_3'],current_line(),'SCROLL SIZE');

  new_line(current_line() + 14);
    $pdf->Text($margin['tab_2'] +2,current_line() + 5,'REG. #16');
    gentab_BitField_8($margin['tab_4'],current_line(),14,7,
      array('0','0','VSZ1','VSZ2','0','0','HSZ1','HSZ0'));


  new_line(current_line() + 6);

  set_text_space(3.8);
    $pdf->Text($margin['tab_2'] + 2,current_line(),'VSZ1, 0: VSIZE');
    $pdf->Text($margin['tab_6'] + 2,current_line(),'HSZ1, 0: HSIZE');
  new_line();
    gentab_Start(0,$margin['tab_2'],54);
      gentab_Cell_Add(0,0,13);
      gentab_Cell_Add(0,1,13);
      gentab_Cell_Add(0,2,28);
      gentab_Cell_AutoWidth(0);

    gentab_Start(1,$margin['tab_6'],54);
      gentab_Cell_Add(1,0,13);
      gentab_Cell_Add(1,1,13);
      gentab_Cell_Add(1,2,28);
      gentab_Cell_AutoWidth(1);
  new_line();
    gentab_Cell_Text(0,0,'VSZ1');
    gentab_Cell_Text(0,1,'VSZ0');
    gentab_Cell_Text(0,2,'FUNCTION','L');

    gentab_Cell_Text(1,0,'HSZ1');
    gentab_Cell_Text(1,1,'HSZ0');
    gentab_Cell_Text(1,2,'FUNCTION','L');
  new_line();
    gentab_Line(0);
    gentab_Line(1);
  new_line();
    gentab_Cell_Text(0,0,'0');
    gentab_Cell_Text(0,1,'0');
    gentab_Cell_Text(0,2,'V 32 cell','L');

    gentab_Cell_Text(1,0,'0');
    gentab_Cell_Text(1,1,'0');
    gentab_Cell_Text(1,2,'H 32 cell','L');
  new_line();
    gentab_Line(0);
    gentab_Line(1);
  new_line();
    gentab_Cell_Text(0,0,'0');
    gentab_Cell_Text(0,1,'1');
    gentab_Cell_Text(0,2,'V 64 cell','L');

    gentab_Cell_Text(1,0,'0');
    gentab_Cell_Text(1,1,'1');
    gentab_Cell_Text(1,2,'H 62 cell','L');
  new_line();
    gentab_Line(0);
    gentab_Line(1);
  new_line();
    gentab_Cell_Text(0,0,'1');
    gentab_Cell_Text(0,1,'0');
    gentab_Cell_Text(0,2,'PROHIBITED','L');

    gentab_Cell_Text(1,0,'1');
    gentab_Cell_Text(1,1,'0');
    gentab_Cell_Text(1,2,'PROHIBITED','L');
  new_line();
    gentab_Line(0);
    gentab_Line(1);
  new_line();
    gentab_Cell_Text(0,0,'1');
    gentab_Cell_Text(0,1,'1');
    gentab_Cell_Text(0,2,'V 128 cell','L');

    gentab_Cell_Text(1,0,'1');
    gentab_Cell_Text(1,1,'1');
    gentab_Cell_Text(1,2,'H 128 cell','L');
  new_line();
    gentab_End(0);
    gentab_End(1);
  new_line();
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'* Both of scroll A and B');
  new_line();
  new_line();

//======================================================================================================================
  $pdf->Bookmark('14. Window H Position',2,current_line() - 10);
    $pdf->Text($margin['tab_2'],current_line(),'14.');
    $pdf->Text($margin['tab_3'],current_line(),'WINDOW H POSITION');
    set_text_space(4.4);
  new_line();
  new_line();
    $pdf->Text($margin['tab_2'] +2,current_line() + 5,'REG. #16');
    gentab_BitField_8($margin['tab_4'],current_line(),14,7,
      array('RIGT','0','0','WHP5','WHP4','WHP3','WHP2','WHP1'));
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'RIGT.. ..');
    $pdf->Text($margin['tab_5'],current_line(),'0: Window is in left side from base point');
    $pdf->Text($margin['tab_5'],new_line(),'1: Window is in right side from base point.');

    $pdf->Text($margin['tab_4'],new_line(),'WHP5~1');
    $pdf->Text($margin['tab_5'],current_line(),'Base pointer');
    $pdf->Text($margin['tab_6'],new_line(),'0 = Left side');
    $pdf->Text($margin['tab_6'],new_line(),'1 = 1 cell right');
    $pdf->Text($margin['tab_6'],new_line(),'2 ...');
  new_line();
  new_line();

  add_footer($pdf,'02/19/92','16');
?>
